<?php

namespace App\Models;


class Teacher extends Orm
{
    //
    protected $table = 'teacher';
    protected $dateFormat = 'U';
    public $timestamps = true;


    public function setAvatarAttribute($value)
    {
        $this->dealSetImageAttribute('avatar', $value);
    }

    public function userInfo()
    {
        return $this->belongsTo(Users::class,'user_id');
    }

}
